cmake_minimum_required(VERSION 3.13)
project(opengl LANGUAGES C CXX)

find_package(glm REQUIRED)
# 使用的第三方模块
find_package(PkgConfig REQUIRED)
pkg_check_modules(Freetype REQUIRED freetype2)

add_executable(test test.cpp)
target_link_libraries(test GL glut)

add_executable(test_shader
    test_shader.cpp
    ./include/glad.c)
target_link_libraries(test_shader PRIVATE
    GL GLU glut dl
    ${glm_LIBRARIES})
target_include_directories(test_shader PRIVATE
    ./include)

add_subdirectory(CreationEngine)
add_subdirectory(day1)
add_subdirectory(day2-light)

